// =============================================================
// CKeyValue
// ---------------------------------------
// Author : Woo-Hyun Kim
// Email : woorung@icu.ac.kr or woorung@nhncorp.com
// Date : Sep. 4, 2007
// =============================================================
#ifndef CKeyValueH
#define CKeyValueH
//-----------------------------------------------------------------
#include <iostream>

#include "CSpace.h"

using namespace std;
//-----------------------------------------------------------------
class CKeyValue : public CObject {
private:
        char *key;
	char *value;

protected:
        virtual bool blindlyEquals(const CObject *rhs) const; 
        virtual const type_info *getTypeEquiv() const;

public:
        CKeyValue();
        CKeyValue(const CKeyValue &obj); 
        virtual ~CKeyValue(); 

        virtual CKeyValue *clone() const; 
        virtual CKeyValue &operator=(CKeyValue &obj); 

        int set(char *k, char *v); 
        char *getKey();
        char *getValue();
        void setKey(char *k);
        void setValue(char *v);

        void print();
};
//-----------------------------------------------------------------
#endif
